import {
	request,
	baseUrl
} from "../request_loading.js"

//域名 端口号
//var baseUrl = 'https://wzxlovemzy.com:6001/user'

//查询未读历史消息
export function getNotReadMsg(userId, pageNum) {
	return request({
		url: baseUrl + '/msg/getNotReadMsg?userId=' + uni.getStorageSync('userId') + '&pageNum=' + pageNum || 20,
		method: 'GET'
	})
}

//更改未读消息状态
export function updateNotReadMsg() {
	return request({
		url: baseUrl + '/msg/updateNotReadMsg?userId=' + uni.getStorageSync('userId'),
		method: 'GET'
	})
}